/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						 spell_actor_animation.h

	$Header: /heroes4/spell_actor_animation.h $

	$NoKeywords: $

 ************************************************************************/

#if !defined( SPELL_ACTOR_ANIMATION_H_INCLUDED )
#define SPELL_ACTOR_ANIMATION_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "combat_spell_ptr.h"
#include "counted_animation.h"
#include "counted_idle_processor.h"
#include "handler.h"

class t_combat_actor;

class t_spell_actor_animation : public t_counted_idle_processor, public t_counted_animation
{
public:
	t_spell_actor_animation( t_battlefield& battlefield, t_combat_actor& actor, 
							 t_combat_spell_ptr spell,   t_handler handler );

	virtual void on_idle();
protected:
	t_combat_actor&		m_actor;
	t_handler			m_handler;
	t_combat_spell_ptr  m_spell;
};

typedef t_counted_ptr< t_spell_actor_animation > t_spell_actor_animation_ptr;

#endif // SPELL_ACTOR_ANIMATION_H_INCLUDED